package cn.wolfcode.p2p.base.query;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class QueryObject {

    private int currentPage = 1;//当前页
    private int pageSize = 5;//每页显示多少行
    private String orderBy; //排序名称
    private String orderType;//升序/降序

    public int getStart() {
        return (currentPage - 1) * pageSize;
    }


}
